package com.fristvue.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.fristvue.po.ShopCart;
import com.fristvue.po.Util.ShopUtil;

public interface ShopCartDao {
	//查询出用户对应的购物中的数据
	public List<ShopCart> findShopList(@Param("num") Integer num, @Param("size") Integer size,
			@Param("shop") ShopUtil shopUtil);
	//共有多少条数据
	public int countShop(@Param("shop") ShopUtil shopUtil);
	//添加购物车数据
	public boolean ShopCartAdd(ShopCart shopCart);
	//删除
	public boolean DeleteShopCart(Integer shopCartId);
	//找到对应数据
	public ShopCart shopCartById(Integer id);
	//修改数据
	public boolean updatShopCartById(ShopCart shopCart);
}
